(function(){tinymce.PluginManager.requireLangPack("umbraco");tinymce.create("tinymce.plugins.UmbracoImagePlugin",{init:function(A,B){A.addCommand("mceUmbimage",function(){if(A.dom.getAttrib(A.selection.getNode(),"class").indexOf("mceItem")!=-1){return}A.windowManager.open({file:tinyMCE.activeEditor.getParam("umbraco_path")+"/plugins/tinymce3/insertImage.aspx",width:575+A.getLang("umbracoimg.delta_width",0),height:505+A.getLang("umbracoimg.delta_height",0),inline:1},{plugin_url:B})});A.addButton("image",{title:"advimage.image_desc",cmd:"mceUmbimage"})},getInfo:function(){return{longname:"Umbraco image dialog",author:"Umbraco",authorurl:"http://umbraco.org",infourl:"http://umbraco.org",version:"1.0"}}});tinymce.PluginManager.add("umbracoimg",tinymce.plugins.UmbracoImagePlugin)})();